#ifndef __C_APPLDR_OAL_H__
#define __C_APPLDR_OAL_H__

#ifdef __cplusplus
extern "C" {
#endif

/* open a file only for read */
int lo_open(const char *filename);

/* close a file */
void lo_close(int hdr);

/* set the file pointer */
#define LO_SEEK_START	(1)
#define LO_SEEK_CUR		(2)
#define LO_SEEK_END		(3)
int lo_seek(int hdr, unsigned int pos, int way);

/* get the file size */
unsigned int lo_filesize(int hdr);

#ifdef __cplusplus
}
#endif
#endif
/* EOF */
